#ifndef TIMER_H
#define TIMER_H
#include "Singleton.h"
#include "NonCopyable.h"

class Timer : public NonCopyable
{
private:
	Timer();
	friend class Singleton<Timer>;
public:	
	void Update();
	float GetDt() const;
	unsigned int GetElapsedTime();
private:
	float			m_dt;
	unsigned int	m_oldTicks;
};

typedef Singleton<Timer> TheTimer;

#endif